Skip to content

fix: add system prompt to save Spotify URL to artist socials#143

Merged
sweetmantech merged 4 commits intotestfrom
sweetmantech/myc-3985-spotify-deep-research-artist-socials-not-filling-in-artist
Jan 21, 2026
Merged

fix: add system prompt to save Spotify URL to artist socials#143
sweetmantech merged 4 commits intotestfrom
sweetmantech/myc-3985-spotify-deep-research-artist-socials-not-filling-in-artist

Conversation

@sweetmantech
Copy link
Copy Markdown
Contributor

Summary

  • Adds a system prompt to the update_artist_socials step in createNewArtistToolChain
  • Instructs the AI to save the Spotify profile URL from the get_spotify_search results
  • Fixes the issue where Spotify profile wasn't being saved to artist socials

Test plan

  • Run the create_new_artist tool loop and verify Spotify URL is saved to artist socials

🤖 Generated with Claude Code

The update_artist_socials step now has a system prompt instructing the
AI to save the Spotify profile URL from the search results.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
recoup-api Ready Ready Preview Jan 21, 2026 2:04pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 21, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

The database stores profile URLs without the protocol (e.g.,
"open.spotify.com/artist/123" instead of "https://..."). The
selectSocials query was using the full URL with protocol, causing
it to miss existing records. When insertSocials was then called,
it failed with a duplicate key violation.

- Add normalizeProfileUrl function to strip protocol and trailing slash
- Use normalized URLs in updateArtistSocials for both query and insert
- Add comprehensive tests for normalizeProfileUrl

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sweetmantech sweetmantech merged commit d4f6a84 into test Jan 21, 2026
4 checks passed
@sweetmantech sweetmantech deleted the sweetmantech/myc-3985-spotify-deep-research-artist-socials-not-filling-in-artist branch January 21, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant